
/**
 * 配置路由
 * 接受如下几种形式
 * (1)'/a/b': 'path/to/module' // 最常用，注意：path/to/module 是相对于 src/modules/ 的路径
 * (2)'/a/c: {component: 'path/to/module', exact: false}  // 增加 exact: false，对路径进行模糊匹配
 * (3)'/a/d': {redirect: '/a/b'}  // 重定向
 */
import Home from "@/modules/Home";
import ToolsList from "@/modules/ToolsList";
import Login from "@/modules/Login";
import Diagram from "@/modules/Diagram";
import Project from "@/modules/Project";
import Tutorial from "@/modules/Tutorial";

export const routerPath = {
  home: "/",
  login: "/login/:type",
  tools: "/toolsList",
  diagram: "/diagram/:type?/:diagramId?",
  projects:"/project",
  tutorial:"/tutorial",
};

export const mainRouters = {
  [routerPath.login]: Login,
  [routerPath.home]: Home,
  [routerPath.tools]: ToolsList,
  [routerPath.diagram]: Diagram,
  [routerPath.projects]:Project,
  [routerPath.tutorial]:Tutorial,
};
